# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pyshark
_pkgname=pyshark
pkgver=0.6
pkgrel=4
pkgdesc='Python wrapper for tshark, allowing python packet parsing using wireshark dissectors.'
arch=('any')
url='https://pypi.org/project/pyshark/#files'
license=('MIT')
depends=('python' 'python-lxml' 'python-logbook')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('520af9ed93d0558aaf7d6c699d6287d66a04184b32ad205fcc5a77880ab99bbdcd33a7dddb27a3b69209435af7c7dd49e1fad6232d81d41d7020783ad24b7547')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}
